<div class="szamlak view">
<h2><?php echo __('Szamla');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $szamla['Szamla']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Gyujto'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($szamla['Gyujto']['id'], array('controller'=> 'gyujtok', 'action'=>'view', $szamla['Gyujto']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Szam'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $szamla['Szamla']['szam']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Nev'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $szamla['Szamla']['nev']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Ev'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $szamla['Szamla']['ev']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $this->Html->link(__('Edit Szamla'), array('action'=>'edit', $szamla['Szamla']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Szamla'), array('action'=>'delete', $szamla['Szamla']['id']), null, sprintf(__('Are you sure you want to delete # %s?'), $szamla['Szamla']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Szamlak'), array('action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Szamla'), array('action'=>'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Gyujtok'), array('controller'=> 'gyujtok', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Gyujto'), array('controller'=> 'gyujtok', 'action'=>'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Tetelek'), array('controller'=> 'tetelek', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Tartozik Tetel'), array('controller'=> 'tetelek', 'action'=>'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Tetelek');?></h3>
	<?php if (!empty($szamla['TartozikTetel'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Bizonylat Id'); ?></th>
		<th><?php echo __('Sorszam'); ?></th>
		<th><?php echo __('Szoveg'); ?></th>
		<th><?php echo __('Osszeg'); ?></th>
		<th><?php echo __('T'); ?></th>
		<th><?php echo __('K'); ?></th>
		<th><?php echo __('Spec'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($szamla['TartozikTetel'] as $tartozikTetel):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $tartozikTetel['id'];?></td>
			<td><?php echo $tartozikTetel['bizonylat_id'];?></td>
			<td><?php echo $tartozikTetel['sorszam'];?></td>
			<td><?php echo $tartozikTetel['szoveg'];?></td>
			<td><?php echo $tartozikTetel['osszeg'];?></td>
			<td><?php echo $tartozikTetel['t'];?></td>
			<td><?php echo $tartozikTetel['k'];?></td>
			<td><?php echo $tartozikTetel['spec'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller'=> 'tetelek', 'action'=>'view', $tartozikTetel['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller'=> 'tetelek', 'action'=>'edit', $tartozikTetel['id'])); ?>
				<?php echo $this->Html->link(__('Delete'), array('controller'=> 'tetelek', 'action'=>'delete', $tartozikTetel['id']), null, sprintf(__('Are you sure you want to delete # %s?'), $tartozikTetel['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Tartozik Tetel'), array('controller'=> 'tetelek', 'action'=>'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Tetelek');?></h3>
	<?php if (!empty($szamla['KovetelTetel'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Bizonylat Id'); ?></th>
		<th><?php echo __('Sorszam'); ?></th>
		<th><?php echo __('Szoveg'); ?></th>
		<th><?php echo __('Osszeg'); ?></th>
		<th><?php echo __('T'); ?></th>
		<th><?php echo __('K'); ?></th>
		<th><?php echo __('Spec'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($szamla['KovetelTetel'] as $kovetelTetel):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $kovetelTetel['id'];?></td>
			<td><?php echo $kovetelTetel['bizonylat_id'];?></td>
			<td><?php echo $kovetelTetel['sorszam'];?></td>
			<td><?php echo $kovetelTetel['szoveg'];?></td>
			<td><?php echo $kovetelTetel['osszeg'];?></td>
			<td><?php echo $kovetelTetel['t'];?></td>
			<td><?php echo $kovetelTetel['k'];?></td>
			<td><?php echo $kovetelTetel['spec'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller'=> 'tetelek', 'action'=>'view', $kovetelTetel['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller'=> 'tetelek', 'action'=>'edit', $kovetelTetel['id'])); ?>
				<?php echo $this->Html->link(__('Delete'), array('controller'=> 'tetelek', 'action'=>'delete', $kovetelTetel['id']), null, sprintf(__('Are you sure you want to delete # %s?'), $kovetelTetel['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Kovetel Tetel'), array('controller'=> 'tetelek', 'action'=>'add'));?> </li>
		</ul>
	</div>
</div>
